package control.menu;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import view.PainelPrincipal;
import view.View;

public class MenuControl implements ActionListener {

	private View visao;

	public void exibirFramePrincipal() {
		visao = (View) new PainelPrincipal(this);
		visao.exibir();
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		if (e.getActionCommand().equals("sair")) {
			System.exit(0);
		}

	}

}
